package org.brisling.medical.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

import org.brisling.base.domain.impl.BaseDomain;
import org.brisling.base.domain.impl.BaseDomainExcludeId;
import org.brisling.base.domain.inf.BaseDomainInf;
import org.brisling.common.ConstSysParam;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 
 * <p>
 * Title: InpatientItem
 * </p>
 * <p>
 * Description: 住院医嘱项目实体类
 * </p>
 * <p>
 * Company: 长沙东勤信息科技发展有限公司
 * </p>
 * 
 * @author jackson wang
 * @since 1.0
 * @version 1.0
 * @date 2017年7月25日 上午11:53:05
 */
@Entity
@Table(name = ConstSysParam.MODULE_INPATIENT_ITEM)
public class InpatientItem extends BaseDomainExcludeId implements BaseDomainInf {

	/*
	 * 主键
	 */
	@Id
	@Column
	@GeneratedValue(strategy = GenerationType.TABLE, generator = "inpatientItemGenerator")
	@TableGenerator(name = "inpatientItemGenerator", table = "sysman_generation_key", pkColumnValue = ConstSysParam.MODULE_INPATIENT_ITEM, pkColumnName = "primary_key", valueColumnName = "key_value", allocationSize = 1)
	private Long id;

	@Override
	public Long getId() {
		// TODO Auto-generated method stub
		return this.id;
	}

	@Override
	public void setId(Long id) {
		// TODO Auto-generated method stub
		this.id = id;
	}

	private String basic_dose;

	private Long diagnosis_id;

	private String diagnosis_name;

	private String doct_code;

	private String doct_name;

	private String doct_depart_code;

	private String doct_depart_name;

	private String dose_unit;

	private Long drug_code;

	private String drug_name;

	private String drug_spec;

	private Long drug_type;

	private String drug_usage;

	private Double each_dosage;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date executeat;

	private Long exe_depart_code;

	private String exe_depart_name;

	private String frequency;

	private String f_dep;

	private String f_dep_cod;

	private String hospital_code;

	private String hospital_name;

	private Long inpatient_id;

	private String inpatient_no;

	private String is_drug;

	private Double num;

	private String patient_name;

	private Long patient_no;

	private Long patient_id;

	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private Date perform_date;

	private String sys_type;

	public String getBasic_dose() {
		return basic_dose;
	}

	public void setBasic_dose(String basic_dose) {
		this.basic_dose = basic_dose;
	}

	public Long getDiagnosis_id() {
		return diagnosis_id;
	}

	public void setDiagnosis_id(Long diagnosis_id) {
		this.diagnosis_id = diagnosis_id;
	}

	public String getDiagnosis_name() {
		return diagnosis_name;
	}

	public void setDiagnosis_name(String diagnosis_name) {
		this.diagnosis_name = diagnosis_name;
	}

	public String getDoct_code() {
		return doct_code;
	}

	public void setDoct_code(String doct_code) {
		this.doct_code = doct_code;
	}

	public String getDoct_name() {
		return doct_name;
	}

	public void setDoct_name(String doct_name) {
		this.doct_name = doct_name;
	}

	public String getDoct_depart_code() {
		return doct_depart_code;
	}

	public void setDoct_depart_code(String doct_depart_code) {
		this.doct_depart_code = doct_depart_code;
	}

	public String getDoct_depart_name() {
		return doct_depart_name;
	}

	public void setDoct_depart_name(String doct_depart_name) {
		this.doct_depart_name = doct_depart_name;
	}

	public String getDose_unit() {
		return dose_unit;
	}

	public void setDose_unit(String dose_unit) {
		this.dose_unit = dose_unit;
	}

	public Long getDrug_code() {
		return drug_code;
	}

	public void setDrug_code(Long drug_code) {
		this.drug_code = drug_code;
	}

	public String getDrug_name() {
		return drug_name;
	}

	public void setDrug_name(String drug_name) {
		this.drug_name = drug_name;
	}

	public String getDrug_spec() {
		return drug_spec;
	}

	public void setDrug_spec(String drug_spec) {
		this.drug_spec = drug_spec;
	}

	public Long getDrug_type() {
		return drug_type;
	}

	public void setDrug_type(Long drug_type) {
		this.drug_type = drug_type;
	}

	public String getDrug_usage() {
		return drug_usage;
	}

	public void setDrug_usage(String drug_usage) {
		this.drug_usage = drug_usage;
	}

	public Double getEach_dosage() {
		return each_dosage;
	}

	public void setEach_dosage(Double each_dosage) {
		this.each_dosage = each_dosage;
	}

	public Date getExecuteat() {
		return executeat;
	}

	public void setExecuteat(Date executeat) {
		this.executeat = executeat;
	}

	public Long getExe_depart_code() {
		return exe_depart_code;
	}

	public void setExe_depart_code(Long exe_depart_code) {
		this.exe_depart_code = exe_depart_code;
	}

	public String getExe_depart_name() {
		return exe_depart_name;
	}

	public void setExe_depart_name(String exe_depart_name) {
		this.exe_depart_name = exe_depart_name;
	}

	public String getFrequency() {
		return frequency;
	}

	public void setFrequency(String frequency) {
		this.frequency = frequency;
	}

	public String getF_dep() {
		return f_dep;
	}

	public void setF_dep(String f_dep) {
		this.f_dep = f_dep;
	}

	public String getF_dep_cod() {
		return f_dep_cod;
	}

	public void setF_dep_cod(String f_dep_cod) {
		this.f_dep_cod = f_dep_cod;
	}

	public String getHospital_code() {
		return hospital_code;
	}

	public void setHospital_code(String hospital_code) {
		this.hospital_code = hospital_code;
	}

	public String getHospital_name() {
		return hospital_name;
	}

	public void setHospital_name(String hospital_name) {
		this.hospital_name = hospital_name;
	}

	public Long getInpatient_id() {
		return inpatient_id;
	}

	public void setInpatient_id(Long inpatient_id) {
		this.inpatient_id = inpatient_id;
	}

	public String getInpatient_no() {
		return inpatient_no;
	}

	public void setInpatient_no(String inpatient_no) {
		this.inpatient_no = inpatient_no;
	}

	public String getIs_drug() {
		return is_drug;
	}

	public void setIs_drug(String is_drug) {
		this.is_drug = is_drug;
	}

	public Double getNum() {
		return num;
	}

	public void setNum(Double num) {
		this.num = num;
	}

	public String getPatient_name() {
		return patient_name;
	}

	public void setPatient_name(String patient_name) {
		this.patient_name = patient_name;
	}

	public Long getPatient_no() {
		return patient_no;
	}

	public void setPatient_no(Long patient_no) {
		this.patient_no = patient_no;
	}

	public Date getPerform_date() {
		return perform_date;
	}

	public void setPerform_date(Date perform_date) {
		this.perform_date = perform_date;
	}

	public String getSys_type() {
		return sys_type;
	}

	public void setSys_type(String sys_type) {
		this.sys_type = sys_type;
	}

	public Long getPatient_id() {
		return patient_id;
	}

	public void setPatient_id(Long patient_id) {
		this.patient_id = patient_id;
	}

}
